        <!DOCTYPE html>
        <html>
        <head>
                <meta charset="utf-8">
        <title>AddEvent class / properties Library / Dart Documentation</title>
        <link rel="stylesheet" type="text/css"
            href="../styles.css">
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" href="../favicon.ico">
        
        </head>
        <body data-library="properties" data-type="AddEvent">
        <div class="page">
        <div class="header">
          <a href="../index.html"><div class="logo"></div></a>
          <a href="../index.html">Dart Documentation</a>
         &rsaquo; <a href="../properties.html">properties</a> &rsaquo; <a href="../properties/AddEvent.html">AddEvent</a>        <div id="search-box">
          <input type="search" name="q" id="q" autocomplete="off"
              class="search-input" placeholder="Search API">
        </div>
        
      </div>
      <div class="drop-down" id="drop-down"></div>
      
        <div class="nav">
        
<h2><div class="icon-library"></div><a href="../properties.html">properties</a></h2><ul class="icon">
<li><div class="icon-class"></div><strong>AddEvent</strong></li>
<li><a href="../properties/BoolEvaluator.html"><div class="icon-class"></div>BoolEvaluator</a></li>
<li><a href="../properties/Properties.html"><div class="icon-class"></div>Properties</a></li>
<li><a href="../properties/PropertiesEvent.html"><div class="icon-class"></div>PropertiesEvent&lt;T&gt;</a></li>
<li><a href="../properties/UpdateEvent.html"><div class="icon-class"></div>UpdateEvent</a></li>
</ul>
</div>
<div class="content">
        <h2><strong>AddEvent</strong>
          class
        </h2>
        
<button id="show-inherited" class="show-inherited">Hide inherited</button>
<div class="doc">
<p>A factory to create simple property added event.</p>
<pre class="source">
class AddEvent extends PropertiesEvent {

 final String _key;
 final String _value;
 
 /**
  * Create a new property added event instance by name the [eventType] and the property's [key] and [value].
  */
 const AddEvent(this._key, this._value):super(Properties.ADD_PROPERTY_EVENTNAME);
 
 /**
  * Getter for the added [key].
  */
 String get key =&gt; _key;
 
 /**
  * Getter for the added [value].
  */
 String get value =&gt; _value;
 

 String toString(){
   return "${Properties.ADD_PROPERTY_EVENTNAME} on ${this._key}: ${this._value}";
 }
}
</pre>
</div>
<h3>Extends</h3>
<p>
<span class="type-box"><span class="icon-class"></span><a href="../properties/PropertiesEvent.html">PropertiesEvent</a></span>&nbsp;&gt;&nbsp;<span class="type-box"><span class="icon-class"></span><strong>AddEvent</strong></span></p>
<div>
<h3>Constructors</h3>
<div class="method"><h4 id="AddEvent">
<button class="show-code">Code</button>
const <strong>AddEvent</strong>(<a href="http://api.dartlang.org/dart_core/String.html">String</a> _key, <a href="http://api.dartlang.org/dart_core/String.html">String</a> _value) <a class="anchor-link" href="#AddEvent"
              title="Permalink to AddEvent.AddEvent">#</a></h4>
<div class="doc">
<p>Create a new property added event instance by name the <code>eventType</code> and the property's <a class="crossref" href="../properties/AddEvent.html#key">key</a> and <a class="crossref" href="../properties/AddEvent.html#value">value</a>.</p>
<pre class="source">
const AddEvent(this._key, this._value):super(Properties.ADD_PROPERTY_EVENTNAME);
</pre>
</div>
</div>
</div>
<div>
<h3>Properties</h3>
<div class="field"><h4 id="key">
<button class="show-code">Code</button>
final <a href="http://api.dartlang.org/dart_core/String.html">String</a>         <strong>key</strong> <a class="anchor-link"
            href="#key"
            title="Permalink to AddEvent.key">#</a>
        </h4>
        <div class="doc">
<p>Getter for the added <a class="crossref" href="../properties/AddEvent.html#key">key</a>.</p>
<pre class="source">
String get key =&gt; _key;
</pre>
</div>
</div>
<div class="field inherited"><h4 id="type">
<button class="show-code">Code</button>
final <a href="http://api.dartlang.org/dart_core/String.html">String</a>         <strong>type</strong> <a class="anchor-link"
            href="#type"
            title="Permalink to AddEvent.type">#</a>
        </h4>
        <div class="inherited-from">inherited from <a href="../properties/PropertiesEvent.html">PropertiesEvent</a> </div><div class="doc">
<p>Getter fro the <code>eventType</code> of this event.</p>
<pre class="source">
String get type =&gt; _eventType;
</pre>
</div>
</div>
<div class="field"><h4 id="value">
<button class="show-code">Code</button>
final <a href="http://api.dartlang.org/dart_core/String.html">String</a>         <strong>value</strong> <a class="anchor-link"
            href="#value"
            title="Permalink to AddEvent.value">#</a>
        </h4>
        <div class="doc">
<p>Getter for the added <a class="crossref" href="../properties/AddEvent.html#value">value</a>.</p>
<pre class="source">
String get value =&gt; _value;
</pre>
</div>
</div>
</div>
<div>
<h3>Methods</h3>
<div class="method"><h4 id="toString">
<button class="show-code">Code</button>
<a href="http://api.dartlang.org/dart_core/String.html">String</a> <strong>toString</strong>() <a class="anchor-link" href="#toString"
              title="Permalink to AddEvent.toString">#</a></h4>
<div class="doc">
<div class="inherited">
<p>Returns a string representation of this object.</p>
<div class="docs-inherited-from">docs inherited from <a href="http://api.dartlang.org/dart_core/Object.html">Object</a> </div></div>
<pre class="source">
String toString(){
 return "${Properties.ADD_PROPERTY_EVENTNAME} on ${this._key}: ${this._value}";
}
</pre>
</div>
</div>
</div>
        </div>
        <div class="clear"></div>
        </div>
        <div class="footer">
          <div>This page was generated at 2013-03-16 17:53:06.945</div>
        </div>
        <script async src="../client-static.js"></script>
        </body></html>
        
